.edit-profile-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.background-image image {
  width: 100%;
  height: 100%;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.content-container {
  position: relative;
  z-index: 3;
  padding: 20rpx;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* 页面头部三栏布局 */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 30rpx;
  box-sizing: border-box;
}

.header-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.header-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.page-title {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.title-text {
  font-size: 32rpx;
  color: #fff;
  font-weight: bold;
  text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.3);
  line-height: 1;
}

.back-btn {
  width: 64rpx;
  height: 64rpx;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10rpx);
  position: relative;
  
  /* 扩大点击区域 */
  &::before {
    content: '';
    position: absolute;
    top: -10rpx;
    left: -10rpx;
    right: -10rpx;
    bottom: -10rpx;
    background: transparent;
  }
}

.back-icon {
  font-size: 32rpx;
  color: #fff;
  font-weight: bold;
  line-height: 1;
}

/* 编辑表单 */
.edit-form {
  flex: 1;
  // background: rgba(255, 255, 255, 0.1);
  border-radius: 20rpx;
  padding: 40rpx;
  // backdrop-filter: blur(10rpx);
  margin-bottom: 40rpx;
}

.form-section {
  margin-bottom: 40rpx;
}

.section-title {
  margin-bottom: 20rpx;
}

.section-title .title-text {
  font-size: 28rpx;
  color: #fff;
  font-weight: 600;
}

.required {
  color: #ff6b6b;
  font-weight: bold;
  margin-left: 4rpx;
}

/* 头像编辑 */
.avatar-edit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-preview {
  position: relative;
  width: 120rpx;
  height: 120rpx;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20rpx;
  border: 4rpx solid rgba(255, 255, 255, 0.3);
}

.avatar-preview image {
  width: 100%;
  height: 100%;
}

.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.avatar-preview:active .avatar-overlay {
  opacity: 1;
}

.edit-icon {
  font-size: 32rpx;
  color: #fff;
}

.avatar-tip {
  font-size: 24rpx;
  color: rgba(255, 255, 255, 0.8);
}

/* 输入框 */
.input-container {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12rpx;
  padding: 20rpx;
  border: 2rpx solid rgba(255, 255, 255, 0.3);
}

.form-input {
  width: 100%;
  height: 60rpx;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28rpx;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* 保存按钮 */
.save-section {
  padding: 20rpx 0;
}

.save-btn {
  width: 100%;
  height: 88rpx;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 44rpx;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8rpx 20rpx rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

.save-btn:active {
  transform: translateY(2rpx);
  box-shadow: 0 4rpx 10rpx rgba(102, 126, 234, 0.4);
}

.save-btn[disabled] {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.save-text {
  font-size: 32rpx;
  color: #fff;
  font-weight: bold;
} 